package com.example.sign

import com.example.base.http.ApiServer
import com.example.base.mvi.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class SignViewModel @Inject constructor(val apiServer: ApiServer): BaseViewModel<SignIntent>() {
    override fun handlerIntent(it: SignIntent) {
        when(it){
            is SignIntent.getSigns->{
                httpRequest(apiServer.getSigns(it.uid))
            }
            else->{}
        }
    }
}